#!/bin/sh
echo start install redis ...
mkdir -p /home/redis /home/redis/data
cd /home/redis
docker run --name redis7.0.2 -p 6379:6379 \
-v $PWD/data:/data \
-v $PWD/redis.conf:/usr/local/etc/redis/redis.conf:ro \
-d redis:latest \
redis-server /usr/local/etc/redis/redis.conf --appendonly yes
echo execution complete

echo start standalone install nacos ...
mkdir -p /home/nacos /home/nacos/data /home/nacos/logs
cd /home/nacos
docker run -d --name nacos2.1.0 -p 8848:8848 \
-v $PWD/logs:/data/nacos/logs \
-v $PWD/data:/data/nacos/data \
--env MODE=standalone --env NACOS_SERVER_IP=121.36.20.90 --env JVM_XMS=256m --env JVM_XMX=512m --env JVM_XMN=256m nacos/nacos-server
echo execution complete

docker run --name zipkin -d -p 9411:9411 openzipkin/zipkin
echo execution complete